package com.dz51.core.validate.vo;  

import javax.servlet.http.HttpServletRequest;
  
public class ValidateResult {
    private boolean success;
    private String errorMsg;
    private int errorCode;
    private HttpServletRequest request;
    
    public ValidateResult(HttpServletRequest request, boolean success, String errorMsg) {
        super();
        this.success = success;
        this.errorMsg = errorMsg;
        this.request = request;
    }

    public ValidateResult(HttpServletRequest request, boolean success, String errorMsg, int errorCode) {
        super();
        this.success = success;
        this.errorMsg = errorMsg;
        this.errorCode = errorCode;
        this.request = request;
    }



    public boolean isSuccess() {
        return success;
    }
   
    public String getErrorMsg() {
        return errorMsg;
    }

    public HttpServletRequest getRequest() {
        return request;
    }

    public int getErrorCode() {
        return errorCode;
    }
    
}
